package com.ifox.hgx.spring.hibernate.dao;

import com.ifox.hgx.spring.hibernate.entity.Book;
import com.ifox.hgx.spring.hibernate.entity.TestA;

public interface BookShopDao {

    //根据书号获取书的单价
    int findBookPriceByIsbn(String isbn);

    //更新数的库存. 使书号对应的库存 - 1
    void updateBookStock(String isbn);

    //更新用户的账户余额: 使 username 的 balance - price
    void updateUserAccount(String username, int price);

    void save(Book book);

    void saveTestA(TestA testA);

    TestA getTestA(Integer id) ;
}
